import request from '@/utils/request'
// 获取数据
export function getRoleList(params) {
  return request({
    url: 'park/enterprise',
    params
  })
}
// 删除功能
export function delRoleList(id) {
  return request({
    url: `park/enterprise/${id}`,
    method: 'delete'
  })
}
// 查询企业所属行业
export function getRole() {
  return request({
    url: 'park/industry'
  })
}
// 查看企业
export function getPark(id) {
  return request({
    url: `park/enterprise/${id}`
  })
}
// 编辑企业
export function putRole() {
  return request({
    url: 'park/enterprise'
  })
}
// 展开查看
export function getParklist(id) {
  return request({
    url: `park/enterprise/rent/${id}`
  })
}
// 删除企业合同
export function getRolelists(id) {
  return request({
    url:`park/enterprise/rent/${id}`,
    method: 'delete'
  })
}
// 退租租赁合同
export function dellist(id) {
  return request({
    url:`park/enterprise/rent/${id}`,
    method:'put'
  })
}